package com.wondertek.poms.service.controller;

import com.wondertek.poms.common.log.MethodLog;
import com.wondertek.poms.common.vo.ResultBean;
import com.wondertek.poms.core.service.IPlanMoveCronTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author evan0213
 * @description
 */
@RestController
@RequestMapping("cron-task")
public class CronTaskController {

	@Autowired
	private IPlanMoveCronTaskService planMoveCronTaskService;

	@PostMapping("/plan-move-prd-info")
	@MethodLog(module = "计划移包", insertDB = true, opterate = 1)
	public ResultBean planMovePrdInfo() {
		planMoveCronTaskService.planMove();
		return ResultBean.ok("计划移包成功");
	}
}
